added percentage operation to script