testing rectangular together with localStorage