saving raw data working