changed input functions