add bitWait subroutine to maintain middle reading