handle cases with two negative numbers