added checks in c++
bump