reviewed index - added method to generate session