removed a bug on line 191