get rid of extra comma in list