add write (save) and correlation samples