modified for generator to haml