fixed refresh algorithm