fixed syntax error regarding subst