more beautiful code