write unique ids rather than 'x'