added PCT_THRESHOLD variable