changed color thresholds in main function to 20 and 6