made padding a variable for magellan