code to catch cleaned values