commented repeated code