added some helper methods