removing extra trailing comma