bounds check on x