convenient data recording functions

Visitors: 170,534