improve error
initial commit for 0017
accepted in C++11