fix warning about unused variable
move methods from header to .cpp