checking margins