ex4 final changes