implemented small bind,big bind code