testing refresh function