refactored private var for storing app data