fix data source check for method