add percentage function