save subjects correctly