restored the status calculations