initial version working with real data