forgot to use refactored function in one location