catch border cases