formatting tables 2 and 7