Spatial version of polymer code