updated __invoke method annotation