nit: would be nicer to move this next to the other variable definitions (lines 4,5)