fixed some bugs to do with the pads