renew the average contrast and data path