removed printStacktrace() statements