added marco on malloc