freed up memory in sketch to fix memory overruns