added missed parts of section 5