making some formatting corrections to B