Changed to static

- we now can avoid null excep in fileName