add id number for sorting