added selection of data