work and workdetail factories