added automatic zxy