added purple, corrected logic