private code sample