finalize assignment