added get-latest update function