code file tidy up