works with pad_size 1