fixes to SquaresDblThisFunc sample