moving sample code