fixed a bug where a function was in the header file but not implemented