fixing archive fn