added helper methods
incorporated helper methods