corrected erros