basic implementation of new set_data function in base class