when is user data is produced and written?