I think I need to sort the primitives back to front. ugh.