added some useful methods