deal with multiple variables