modify to use ~A instead of ~S in format controls