older script to update