finalise assignment