refresh method implementation