trimming unused defines