add margin verification