record to storage and model