remove whitespaces, follow ruby best practises