clean function gives a return