added last line of code to store archive