ex3 modified