functions for reading and merging data