reworked part 6
reworked part 7
reworked part 8