add lines to both files