inverted status pins
exchanged two input pins because of the hardware design