added a clear function, so same object could be used multiple times, if you have that kind of a use case, and want to avoid an object flood