added Malloc API