update ex2 for testing