improve pad
Merge pull request #22 from mpizza/pad_improvement

improve pad