exception handling feature added