table reformatting now works