rewrite padNA without using similar closes #20