refactored determine_scenario into one line 'if' statements