rm output files
use STL and references