squared solution