added docu, changed B parameter