cleaned up the data (top and bottom)