use malloc instead calloc for memory allocation