use margin variable