generalizing the data acquisition