data saving for am test