for execise with critical situation
fixed errors