modify sessions helper