using padded instead of unpadded