adding io16 function, editing io1 a bit