check straight line