using two variables instead of tupple