add functions for adding or replace data series