add the check into batchshadowmapmodels too