updated snippets to work with new arrow syntax