fixing 32bit ints
type conversions