mainly add status function