added a method for getting fileName