with modifications to improve HW, and new test6