implement Status function