global function Free() instead of destructor