done the host weight function & pass test.