added some convenience functions