implemented archiving operation