refact utils a bit

just code style refactoring, couldn't stand