factory written