remove inject loop for STATE_TO_CODE