improved section 6 and small changes