fix bug of not taking y2 base