debugged error in multiple args function call