fixing the format in the session application code