as early as the 5th century ah / 11th century ce, more than 150 years after the occultation of the 12th imām, shaykhu t-ta'ifa reinterpreted the doctrine to allow delegation of the imām's judicial authority to those who had studied "fiqh". although he implies in his writings that this function should only be undertaken by the ulama if there is no one else to do it.