considering x axis bias and add x axis threthold

Signed-off-by: mongolia19@gmail.com <mongolia19@gmail.com>