The present invention provides for treating textiles with a composition comprising the reaction product of a) an oxirane or oxetane compound comprising at least two oxirane or oxetane groups and b) an amino silane having the formula: N(H)(R1)R2Si(OR3)3-a-b-c(OR4)a(R5Si(OR6)d(R7)e)b R8c with R1 is chosen from the group consisting of H or a monovalent hydrocarbon radical containing one to 20 carbon atoms R2 and R5 are independently selected from a group consisting of oxygen or a divalent linear or branched hydrocarbon radical consisting of 1-60 carbons R4 is a hydrocarbon radical that contains 3 to 200 carbon atoms R3, R6, R7, and R8 and are each independently selected from the group of monovalent linear or branched hydrocarbon radicals having from 1 to 200 carbon atoms the subscript b is zero or a positive number and has a value ranging from 0 to 3 the subscripts a, and c are zero or positive and have a value ranging from 0 to 3 subject to the limitation that (a + b + c) ≤ 3 the subscripts d and e are zero or positive and have a value ranging from 0 to 3 subject to the limitation that (d + e) ≤ 3, to impart an enhanced response to water.