fixed malloc sizes