working on service factory