call define method on self