outbyte and inbyte implemented