hw6_7 for resubmit