fixed hlint warnings