accounting for padding