edited some code examples, added invoke concept