Some optimization and hide error reporting
optimization