modify pad attribute to double