mark - removed unused helper functions