added setData API