minor change in refresh functionality