reduced code complexity for int32 and datetime.