removed decorator from factory