duplicated code with session comment