[refac] added cpp guards