works with first data, with second wrong result