cleaning up wrapper