made refresh readable

* made refresh readable
* removed unused variables