finish migration

It may be better to use BIGENDIAN ?