build_L with ic as index