hold a reference instead of make a copy in sapply