adding scope to deeper functions?