tested all examples with code changes