use of locate and refresh