adding margin to credits