renamed sess to data