subroutine zon is done