changed vars to vals