study.save writes correctly