adding InputCheck