refresh example improved