small hacks for malloc