layer support for rectangle generator