now check if callback defined