change key to logic.