de duplication of build where and set