check cb before call it