updated define guard