started to implement function that selects data paths