trying to make the code more readable and adding article critical case