malloc is working