cleaned up ex4