tidy up of g1 file