take path to file as secaond param