bg takes an optional name for the var