made this a function so that it's in the scope of the above status and `displayInfo` below