added in clipping planes