fixed bug in shaSubstitution (had the wrong name)