apply migration of version from 3 to 4