added additional helper functions