revert to add select mode write or read