removed case/when statement because of haml