add bmargin to params