deleted repeated code from archive