repaired with permissions