updated square demo