able to pass in variables for phantom