remove unused defs