updated last elements