created b command logic