correct a lot errors