implemented binding of data to an attribute