you can move this up to line 689