making input safer