record data and ranks