modified HW1