added percentage function