removes extra comma