doc comment for square