removing old refresh code