repaired errors