getting rid of duplicate textures etc