editing the functionality for data-binding