prepare for record functions