replace values with variables