binary input ouput