add percent funciton