add functions for binary inout