correcting substitution