Updating margins