adding a script to remove empty pads