apply hlint suggestions