(nit) here and below, use var - it's pretty clear what the types are.