Perfect the "setData" method