add input validity checking
Revert "add input validity checking"

This reverts commit edbf3225cacb685fb69262c0fa21142dba303ff4.