main guards