Causes of spoilage and water activity for low and high moisture food