removed malloc.h include entirely, since it doesn't seem necessary