moved only function from util into main and deleted util.h/c