setData methods implementation