fixed negative percentage bug. mapping function works!