checking for delegate implementation