duplicated code same on line 573