add some methods for inheritance.