added structure of displaySpiritLevel func