apply padding to a