rewrite on haml