changed type check to callable check