move defines near iter functions.