fixed custom example code