remove the erroneous call to file.contents