margin fine-tuning