added session at line 1 and condition at 26line