basically finish status related function.