removed error in the ExpResidFxn script