typo
return uint16_t and uint32_t, not int