removes extra margins