updated function call to match new definition