temp handling for oob exception regarding ArrayList<Integer> collided