loading file as parameter