apply hlint recommendations