displaying info only if it needed