added operator function that was in .cpp file