adding some additional helper functions