changed ints to signed ints