change compare b and h