convenient data recording functions

Visitors: 179,158