removed codes with err