testing helper methods