file path should be passed