add instance methods.