use  variable instead of relative path to file