excluded all utility functions from different files to utils.h and utils.cpp