manual request code revision avoiding to use session variables