correct getFileName method