switch captured to free on release