fixed variables and logout