rewrite syntax-rules (yes, this code looks bad, but..)