Implementing the clear function

I made this change in our code just wanted to pass it along