modify padding, so that it can be query for match