update ex47 and test