refs and defined terms