added peter test code but bad memory access