fixed errors caused by previous commit