correct doc for setSubstitutions