reordered sessions, corrected bug