forEachRef command added