usage of session variable  is removed.
bugs fixed