Control of the chemotactic behavior of Bacillus subtilis cells