solved error on line 243