added  clocked read and write