Update Q to be solve