deleted repeated code