Update guards.cpp