fixed bug on data representation