arrange paramaters of HW7_1