added clearing to the wrapper)