added helper methods
fixes failing tests