tidy up program