reconstruct code of zoom controller