saving the margin bot