removed check and #includes for malloc.h, since it's not needed