changes to control logic 1
changes to control logic 2