update github examples to match the working code