requirement of choosing algorithm before setting postInputs