dataLeaked method takes file variable also