errors fixing