utils.c added