try to write malloc & free