Refresh function completed totest