use a dynamically calculated padding instead of a static padding