fixed a few errors from the last commit