minor changes for exercise5