use let to DRY