added plus algo to factory