replace ints and vals for variable columns

I think that ints and vals must be interchanged.