Re-wrote the repetitive bit for postRangeExpansion