repeated code deleted