fix typo and test
send function, need test