added refresh method