separated utils and funcs
added comments booya