chosing of data source works