cleaning up inputs