finalise coding section