add append to a file
format & remove remaining variables