change shift register state to value
small fix to use proper Map semantics