adding code defs; CLEAR query