added finalize methods