added a function call with input