reducing excessive warnings