fixed uint32/size confusion