final log out parts