made margin constant to avoid overflow issues