almost

problem with substitution