working on repair method