boy Ryan, that was dumb to use 'g' as a temporary var