further condensing of martin&#39;s patch: <br>