define zoom method