use percentile gradient