change remove(int index) to removeIndex(int index)