edit checkX_N on recursive