state -> environment