conciser code; easier to understand