minor improvements to ba