ot says theres an ilegal fuction call on line 50