move zones by id out of loop and fix doc block