changed "file" to an actual File