removing trailing comma