added functionality for data