slightly better hack for square/rect Zt