added bind method and tests