As the air flows past an aircraft in flight, the streamlines are affected by the presence of the aircraft, and the speed of the air relative to the aircraft is different at different positions on the aircraft's outer surface. In consequence of Bernoulli's principle, the different speeds of the air result in different pressures at different positions on the aircraft's surface. The ideal position for a static port is a position where the local air pressure in flight is always equal to the pressure remote from the aircraft, however there is no position on an aircraft where this ideal situation exists for all angles of attack. When deciding on a position for a static port, aircraft designers attempt to find a position where the error between static pressure and free-stream pressure is a minimum across the operating range of angle of attack of the aircraft. The residual error at any given angle of attack is called the position error.