removing last extra comma