now allows singleton vertices