restructure varnish