cleaned up steps 9 and 10