coding for Layout CCB