ex5 modified