refresh works correctly