calloc calls replacing malloc