cleaned and added outfile