creating helper functions c++11 style