added some convenience methods.