added finalize back in