add guards