fnc for auto zoom