sqaure 2nd attempt