adding filename method