begin zoom code