store ref, remove output