optimize refresh