refactor with hlint.