remove deprecated setData method