READ,MATCH AND WRITE