initialization of variables in solvesquare