add def method