working on destory function & demo