cant `is_callable` be used here?