remove nonexisting argument from function call