Working with input parameters doesn't work