add purple detection