added the define method