added check code