refreshing code