method with params