added a malloc function