next prev and formatting