removed redundant method main::_err() and moved functionality to main::__clone() since that was the only method that used it.