add id to output