implemented bind.