fixed errors from previous commit