removed unnecessary check for null solution in state saving function