fixed errors from my previous commit