rewrite to coffee