renamed uc show_all_phases to find_all_phases and refactored it