added check method used in prepare method of operations