add some useful methods