increase perf, make pad func more generic
0.0.1