added status function