moved code sample