modified HW4