added checks for pad blocking