remove unneeded var from collapsing-directive