finished populating control data code