resolve format error, ensure all code examples run