subscript replacing