add intermediate variable
add eof