rewrite in coffee