fixing bug 185