correct zordering