addded checks