added the code for forgetting