this looks not like HAML. please rewrite in HAML