adding method with parameters