fixed code sample.