setting required class