update cs functions