why is `months` the only thing outside the closure?