Change how margins are removed