noticed another error in the same function.