minor changes to sections 5 and 6