small changes to zorder system