fix bug at line 43