you should define all class variables before method definitions. so move this up.