divided code up into utils.c