3d sketch cleanup- should fix memory issues