arbitrary z index (still buggy)