correction in controller for percentage