impementation of binding (to be complete)