adding by_state