add guards.