status function coded.