add method for clearing the data