divide bar and lamp state machines