added some new helper methods and made them public