small adjustment to zoom function