rm unused var post switch to STL