implement clear session