error when trying pass parameters