refresh function done

and one  typo fixed