updaetd for exception handling