added zwischenspeichern to session function