change last, remove first add fromIndex