can we use fewer variables to make the code looks concise?