Three factors affecting larval choice of food plant