pad clearing logic