downgraded C++11 code