fixed zoom algorithm