addition of private data constraints
removed duplicate code from update dataset