correctness test working, performance not