with dan's view_allergy and minor changes