remove "as.list" when capturing variables in environment() and match.call()