updating archive and functions