removing unnecessary copied lines