changed heightRule string to exactHeight bool