fixed nag errors