updated testing with pass in variables