comment
added margin generation