sr is added
self reperaing code is done correctly