made it save keys