changed input to variables