support for nested having