add some useful methods.