removed duplicate line of code