second level exception handling in tosback2 loop added