logic to accept ingredients list