fixed errors due to the previous commit