using RVO, remove buffered variables