additaionl status check added.