changing millers method and solving 7th problem