working on debugging shift register