add necessity class