finalise code for release