used xcalloc instead of calloc
drwxr-xr-x - ir