remove duplicate line of code