removed duplicate line of code on Line 316