If you could post a small example with the data layout that is used as well as an expected result we won't have to guess at what you want to see.