swapped integer for int4 and boolean for bool