added visibility order computaton
added compositing order