implementing refresh method in paddle