added a refresh function