sample code tweaks