add solution state to be the varibles.