update removePercents to be more versatile and remove more things