modify states for proper routing and filtering of data