added document for __invoke method