updated exception for else part