makes sanitized filename more accessible by encapsulating it in a method