setting laststatus