added finalize, mass finalize