removed unused helper functions