refresh working properly