mandatory check code added