added comment to record writing