reads two files