moving variables in canteenParser to encapsulated function