invalid key guards