fix bug line 8 states