intermediate - write all variables