broke out sample code