z-sorting is working now