add method definition