fix hlint warnings