imported sample code