test on real data

minor changes and debug