more code sample conversions