slight update, made the test routine with real data