delete extra trailing comma