exceptions handled made the required changes . replace left