updated for erros