added vertical error measuring