formatting, handling ties