add a var for log