changed pedagogical module for saving state