using encoding/binary/Uint32 instead of converting by code