loc refresh routine