read only a set of rows instead of all data