got rid of that disgusting foldl