cull unneeded code