constrain tree should also work for records