updated the amber/red sequence to correct typo and logic