correctly get files in different lines