correct way to pass a parameter