change for accepting file path as parameter