binop flow function works