(untested) removed all red errors