removing a trailing comma