suppress virtual destructor warning
move use of deprecated function into .cpp
suppress warning