clean up inputs